package cn.kow.kmall.admin.pojo.dto;

import cn.kow.kmall.core.constant.KmallStatusConstant;
import cn.kow.kmall.core.jpa.QueryOperatorEnum;
import cn.kow.kmall.core.jpa.annotion.QueryCondition;
import cn.kow.kmall.core.jpa.query.BasePageQuery;
import lombok.Data;
import lombok.ToString;

/**
 * @Author: lijun
 * @Description:
 * @Date: Created in 2020-04-17 15:42
 * @Modified By:
 */
@Data
@ToString
public class ConfigQueryDTO extends BasePageQuery {

    @QueryCondition(operator = QueryOperatorEnum.like)
    private String configKey;

    @QueryCondition(operator = QueryOperatorEnum.like)
    private String configName;

    @QueryCondition(operator = QueryOperatorEnum.dateRange)
    private String createTime;

    @QueryCondition
    private String configType;

    @QueryCondition
    private Short status = KmallStatusConstant.NORMAL;

    private String orderBy = "createTime desc";
}
